package com.xdcplus.web.mapper.pm;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.pm.PmShiftPlan;
import com.xdcplus.web.common.pojo.query.pm.PmShiftPlanQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 排班计划(PmShiftPlan)表数据库访问层
 *
 * @author Fish.Fei
 * @since 2023-02-16 10:50:18
 */
public interface PmShiftPlanMapper extends IBaseMapper<PmShiftPlan> {

    /**
     * 查询排班计划(PmShiftPlan)
     *
     * @param pmShiftPlanQuery 排班计划(PmShiftPlan)查询
     * @return {@link List<PmShiftPlan>}
     */
    List<PmShiftPlan> queryPmShiftPlan(PmShiftPlanQuery pmShiftPlanQuery);

    List<PmShiftPlan> queryPmShiftPlanByDate(String date);

    List<PmShiftPlan> queryPmShiftPlanByDate1(String date);

    List<PmShiftPlan> queryPmShiftPlanByFromToDate(@Param("fromDate") String fromDate,@Param("toDate") String toDate);

    Integer countByFromToDate(@Param("fromDate") String fromDate, @Param("toDate") String toDate,@Param("notId") Long notId);

    String queryPmShiftTypeByDate(@Param("date") String date);

    PmShiftPlan queryPmShiftPlanByDay(@Param("date") String date);
}
